<?php 
class UsuarioAdm{
    
     private $id;
     private $usuario;
     public $nombre;
     public $email;
     private $password;//password hash
     
     public function setId($id){
        $this->id = $id;
     }
    
     public function getId(){
        return $this->id;
     }
     
    
     public function getUsuario(){
        return $this->usuario;
     }
     
     public function setUsuario($usr){
        //TODO validar el nombre del usuario
         $this->usuario = $usr;
     }
    
    
     public function setNombre($nombre){
        $this->nombre = $nombre;
     }
    
     public function getNombre(){
        return $this->nombre;
     }
    
    
     public function getEmail(){
        return $this->email;
     }
     
     public function setEmail($em){
        $this->email = $em;
     }
     
     public function setPassword($pass){
        //TODO controlar la integridad de la clave
         $this->password = $pass;
     }
     
     public function controlarPassword($pass){
        //return ($this->password==md5($pass)); 
        return ($this->password==$pass);
     }
    
    }
?>